<%@ page contentType="text/html; charset=utf-8" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>后台管理 - 爱购物-商城</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/static/css/style.css"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/function-manage.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/laydate/laydate.js"></script>
</head>
<body>
<c:import url="/static/page/manager-header-nav.jsp">
    <c:param name="nav" value="user"/>
</c:import>
<div id="position" class="wrap">
    您现在的位置：<a href="${pageContext.request.contextPath}/index">爱购物-商城</a> &gt; 管理后台
</div>
<div id="main" class="wrap clearfix">
    <c:import url="/static/page/manage-left-nav.jsp"/>
    <div class="main">
        <h2>修改用户</h2>
        <div class="manage">
            <form action="" method="post">
                <table class="form">
                    <input type="hidden" name="status" value="${user.status}"/>
                    <input type="hidden" name="id" value="${user.id}"/>
                    <tr>
                        <td class="field">用户名：</td>
                        <td><input type="text" class="text" name="username" value="${user.username }"
                                   readonly="readonly"/></td>
                    </tr>
                    <tr>
                        <td class="field">密码：</td>
                        <td><input type="text" class="text" name="password" value="${user.password }"/></td>
                    </tr>
                    <tr>
                        <td class="field">性别：</td>
                        <td><input type="radio" name="sex" value="T" ${user.sex=='T' ? "checked" :""}  />男 <input
                                type="radio" name="sex" value="F" ${user.sex=='F' ? "checked" :""}/>女
                        </td>
                    </tr>
                    <tr>
                        <td class="field">出生日期：</td>
                        <td>
                            <input type="text" class="text" name="birthday" id="birthday"
                                   value="<fmt:formatDate value="${user.birthday}" pattern="yyyy-MM-dd"/>"
                                   readonly="readonly"/>

                        </td>
                    </tr>
                    <tr>
                        <td class="field">邮箱：</td>
                        <td><input type="text" class="text" name="email" value="${user.email }"/></td>
                    </tr>
                    <tr>
                        <td class="field">手机号码：</td>
                        <td><input type="text" class="text" name="mobile" value="${user.mobile}"/></td>
                    </tr>
                    <tr>
                        <td class="field">送货地址：</td>
                        <td><input type="text" class="text" name="address" value="${user.address }"/></td>
                    </tr>

                    <tr>
                        <td></td>
                        <td><label class="ui-blue"><input type="submit" name="submit" value="更新"/></label></td>
                    </tr>

                </table>
            </form>
        </div>
    </div>
</div>
<c:import url="/static/page/footer.jsp"/>

<script>
    // 加载日期控件
    laydate.render({
        elem: '#birthday'
    });
</script>
</body>
</html>
